package lib.persistence.commands;

import global.ConfigData;

import java.sql.Connection;
import java.sql.SQLException;

public class EmptyDatabase extends CommandAbstract {
	private Connection conn;

	public EmptyDatabase(Connection conn)
	{
		this.conn = conn;
	}
	public void execute() throws SQLException
	{
		
		for (String table : ConfigData.TABLES) 
			conn.prepareStatement(String.format("DROP TABLE IF EXISTS `%s`; ",table)).execute();
		
		
	}
}
